package com.fl.proyect_softmedic;


import com.example.proyect_softmedic.R;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class Activity_medic extends Activity {
	
	private Button btnopensch, btnviewmodified, btnsettingaccount, btnqueryschedulle, btnliqday, btnliqback, btnsmsemail; // botones de acceso del menu del medico
	private CurrentDate dc = null; // objeto de la clase CurrentDate para mostrar la fecha actual
	private TextView tvdatecurrent; // etiqueta para mostrar la hora actual
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_medic);
		
		btnopensch = (Button)findViewById(R.id.btn_openquote);
		btnviewmodified = (Button)findViewById(R.id.btn_modifiedquote);
		btnsettingaccount = (Button)findViewById(R.id.btn_settingacount);
		btnqueryschedulle = (Button)findViewById(R.id.btn_queryschedulle);
		btnliqday = (Button)findViewById(R.id.btn_liquidationday);
		btnliqback = (Button)findViewById(R.id.btn_liquidationback);
		btnsmsemail = (Button)findViewById(R.id.btn_smsemail);
		
		//se crea un objeto de la clsse CurrentDate para mostrar la fecha actual o dia de la semana
		dc = new CurrentDate();
		tvdatecurrent = (TextView)findViewById(R.id.txtv_Date1);
		tvdatecurrent.setText(dc.setDate());
		
		//evento para abrir aganda
		btnopensch.setOnClickListener(new OnClickListener() {
					@Override
					public void onClick(View v) {
						Intent i = new Intent(Activity_medic.this, OpenschedulleActivity.class);
						startActivity(i);		
					}
				});

		btnviewmodified.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent j = new Intent(Activity_medic.this, ViewchangeschedulleActivity.class);
				startActivity(j);
			}
		});
		
		btnsettingaccount.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent k = new Intent(Activity_medic.this, Setting_acountMe.class);
				startActivity(k);
				
			}
		});
		
		btnqueryschedulle.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent l = new Intent(Activity_medic.this, QuerySchedulle.class);
				startActivity(l);				
			}
		});
	
		btnliqday.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
						
			}
		});
				
		btnliqback.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
						
			}
		});
			
		btnsmsemail.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
						
			}
		});

	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_medic, menu);
		return true;
	}

}
